package cn.tedu.tmall.admin.content.startup;

import ch.qos.logback.core.sift.AppenderFactory;
import cn.tedu.tmall.admin.content.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class ArticleSearchRunner implements ApplicationRunner {
    @Autowired
    private IArticleService service;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        service.rebuildSearch();
    }
}
